-- GENERATED SPELL FOR [Zul'drak Sentinel] --


function spell0_32447(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(55196,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32447', 10310, 1)
end

function spell1_32447(pUnit, Event) --@Whammy,n/a--
pUnit:FullCastSpellOnTarget(54565,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32447', 3349, 1)
end

function Sorts_32447(pUnit, Event)
local choix_sorts_32447 = math.random(0, 1)
if choix_sorts_32447 == 0 then
pUnit:RegisterEvent('spell0_32447', 1, 1)
end
if choix_sorts_32447 == 1 then
pUnit:RegisterEvent('spell1_32447', 1, 1)
end
end

function mob32447_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32447', math.random(1500, 3000), 1)
end

function mob32447_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32447_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32447_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32447, 1, 'mob32447_Action')
RegisterUnitEvent(32447, 2, 'mob32447_Leave')
RegisterUnitEvent(32447, 3, 'mob32447_Kill')
RegisterUnitEvent(32447, 4, 'mob32447_Die')
